<!--
 * @Author: your name
 * @Date: 2021-09-06 15:50:25
 * @LastEditTime: 2021-09-06 15:56:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day11\9-open.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //不要和 window.open() 方法混淆。
        //document.open 可用于对当前的文档追加内容, 而 window.open 是提供了打开一个新的窗口的方法
        document.open(); //打开一个文档流区追加写入内容
        document.write("<p>Hello world!</p>");
        document.write("<p>I am a fish</p>");
        document.write("<br/>");
        document.write("<p>The number is 42</p>");
        //document.close();
        alert(1);
        document.write(new Date()); //会发生自动的 document.open()调用
    </script>
</head>

<body>
    <div>加载顺序的影响</div>
</body>


</html>